package com.ruoyi.applet.utli;

import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class UserRedisTemplate {
    @Resource
    StringRedisTemplate stringRedisTemplate;

    public void setStringRedisTemplate(String objectKey,String objectValue){
        stringRedisTemplate.opsForValue().set(objectKey,objectValue);
    }

    public Object getStringRedisTemplate(String objectKey){
        return stringRedisTemplate.opsForValue().get(objectKey);
    }


}
